package cn.itsource.pet.domain;

import cn.itsource.basic.domain.BaseDomain;
import cn.itsource.org.domain.Shop;
import cn.itsource.user.domain.User;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.regex.Pattern;

@Data
public class Pet extends BaseDomain {
    //宠物名
    private String name;
    //图片
    private String resources;
    //销售价
    private BigDecimal saleprice;
    //下架时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date offsaletime=new Date();
    //上架时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date onsaletime;
    //上下架装态 默认为下架 0：下架 1，上架
    private Integer state=0;
    //成本价
    private BigDecimal costprice;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createtime=new Date();
    //宠物类型
    private PetType type;
    //宠物对应的商铺
    private Shop shop;
    //领养人
    private User user;
    //寻主对象
    private SearchMasterMsg searchMasterMsg;
    //宠物详情
    private PetDetail detail = new PetDetail();
    //付款方式 1:垫付 2：银行卡支付
    private Integer paytype;
}
